package com.moyu.admin.mapper;

import com.moyu.admin.entity.SysPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.moyu.admin.entity.SysRole;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * Mapper 接口
 *
 * @author moyu
 * @since 2019-02-18
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

  List<SysPermission> findPermissionByRoles(@Param("roleList") List<SysRole> roles);
}
